package com.liuzhou.dao;

import com.liuzhou.model.User;

import java.sql.SQLException;
import java.util.List;

public interface UserDao {
    //user的添加
    public boolean addUser(User user) throws SQLException;
    //user的删除
    public  boolean deleteUser(User user) throws SQLException;
    //user的更新
    public  boolean updateUser(User user) throws SQLException;
    //user的查找
    public User queryUser(User user) throws SQLException;
    //user的分页显示
    public List<User> queryAll(Integer pageNum, Integer pageRow) throws SQLException;
    //按id查找
    public User queryUserById(int id) throws SQLException;
}
